package ex.com.jm.food.entity.dto;

/**
 * 建立dto的目的是在hql中select查询时达到直接from的效果
 * 当如果我们查询出多个字段的话，通常会创建一个DTO对象，用来存储我们查询出来的数据，
 * 通过 new XXX() 这样的方式
 * 前提是XXX这个类里面必须要有接受这些字段的构造方法才行，而且必须要使用类的全名
 * @author zhaojw
 *
 */
public class AdminDTO {
	
	private String adminId;  //主键id
    private String adminName;//管理员名称
    private String adminEmail;//管理员邮箱，登录用户
    private String adminPwd;//管理员密码
    private String type;//区分管理员还是超级管理员，默认值为0（1：超级管理员；0:普通管理员）
    private Integer status;//管理员账户状态(1:启用；0:停用)默认值为1
    private String created;//管理员账户创建时间
    private String updated;//管理员账户创建时间
	private String isAdm;//是否为管理员,默认为Y
	public AdminDTO(String adminId, String adminName, String adminEmail,
			String adminPwd, String type, Integer status, String created,
			String updated, String isAdm) {
		super();
		this.adminId = adminId;
		this.adminName = adminName;
		this.adminEmail = adminEmail;
		this.adminPwd = adminPwd;
		this.type = type;
		this.status = status;
		this.created = created;
		this.updated = updated;
		this.isAdm = isAdm;
	}
	public String getAdminId() {
		return adminId;
	}
	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}
	public String getAdminName() {
		return adminName;
	}
	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}
	public String getAdminEmail() {
		return adminEmail;
	}
	public void setAdminEmail(String adminEmail) {
		this.adminEmail = adminEmail;
	}
	public String getAdminPwd() {
		return adminPwd;
	}
	public void setAdminPwd(String adminPwd) {
		this.adminPwd = adminPwd; 
	}

	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	public String getUpdated() {
		return updated;
	}
	public void setUpdated(String updated) {
		this.updated = updated;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getIsAdm() {
		return isAdm;
	}
	public void setIsAdm(String isAdm) {
		this.isAdm = isAdm;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	
}
